package com.niiwoo.civet.trade.service.koala;

import com.niiwoo.civet.trade.dto.request.kaola.KaoLaDebtResultNotifyRequestDTO;
import com.niiwoo.civet.trade.dto.request.kaola.KaoLaSignNotifyUrlDTO;
import com.niiwoo.civet.trade.dto.response.kaola.KaoLaBaseResponseDTO;
import com.niiwoo.civet.trade.dto.response.kaola.KaoLaCreditAssignmentResponseDTO;

/**
 * 法大大合同签署
 *
 * @author liming
 * @date 2017-12-29 11:35
 */
public interface KaoLaLiCaiContractDubboService {

    /**
     * 考拉待签合同消息通知处理(接受法大大请求)
     * @param kaoLaSignNotifyUrlDTO
     * @return
     */
    KaoLaCreditAssignmentResponseDTO kaolaSignNotify(KaoLaSignNotifyUrlDTO kaoLaSignNotifyUrlDTO);

    /**
     * 自动签署法大大推送的代签合同
     * @param signNotifyRecordId (t_tc_kaola_sign_notify_record:id)
     * @return
     */
    KaoLaBaseResponseDTO autoSignForKaolaDebt(Long signNotifyRecordId);

    /**
     * 考拉债权转让协议签署结果异步通知处理
     * @param requestDTO
     * @return
     */
    KaoLaBaseResponseDTO kaolaDebtResultNotify(KaoLaDebtResultNotifyRequestDTO requestDTO);
}
